/* PersistentObjectEntity - Decompiled by JODE
 * Visit http://jode.sourceforge.net/
 */
package net.da.core.entity;

import javax.persistence.Column;
import javax.persistence.DiscriminatorColumn;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.Table;
import javax.persistence.TableGenerator;

@Entity
@Table(name="persistent_objects")
@Inheritance(strategy=InheritanceType.JOINED)
@DiscriminatorColumn(name="object_type")

public class PersistentObjectEntity extends ObjectEntity {

    @TableGenerator(name="object_id_generator",
            table="id_generation_table",
            pkColumnName="name",
            valueColumnName="value",
            pkColumnValue="object_id",
            initialValue=10000,
            allocationSize=100)

    @Id @GeneratedValue(generator="object_id_generator")
    private Integer id;

    @Column(name="is_deleted", nullable=false)
    private Boolean isDeleted;


    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getId() {
        return id;
    }

    public Boolean isDeleted() {
        return isDeleted;
    }

    public void setDeleted(Boolean isDeleted) {
        this.isDeleted = isDeleted;
    }

}
